//2009/08/20 21:40:57
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class RosePetals
{
public:
    int getScore(vector <int> dice)
    {
		int sum = 0;
		for(int i=0; i<dice.size(); i++)
			if(dice[i] % 2 != 0)
				sum += dice[i] - 1;
		return sum;
    }
};
